/*
 * @Author: 余保林 yubaolin6@outlook.com
 * @Date: 2023-12-08 17:17:45
 * @LastEditors: yuanqu1208 yubaolin6@outlook.com
 * @LastEditTime: 2024-04-28 19:45:10
 * @FilePath: /fssc-project-template/fssc-common/fssc-template/src/router/static-routes.ts
 * @Description: 静态路由
 */

import { AppRouteRecordRaw, RedirectPage } from '@fssc/admin';
export const Layout = () => import('../layout/index.vue');

export const staticRoutes: AppRouteRecordRaw[] = [
  {
    path: '/login',
    name: 'Login',
    component: () => import('../views/frame/login.vue'),
    meta: {
      type: 'static',
      title: '登录',
      noTagsView: true,
    },
  },
  {
    path: '/modifypass',
    name: 'Modifypass',
    component: Layout,
    meta: {
      title: '修改密码',
      type: 'static',
    },
    redirect: 'ModifypassMain',
    children: [
      {
        path: 'main',
        name: 'ModifypassMain',
        component: () => import('../views/frame/modify-pass.vue'),
        meta: {
          type: 'static',
          title: '修改密码',
        },
      },
    ]
  },
  {
    path: '/404',
    name: '404',
    component: () => import('../views/frame/404.vue'),
    meta: {
      type: 'static',
      title: '未实现/没权限',
      noTagsView: true
    },
  },
  {
    path: '/redirect',
    component: Layout,
    name: 'Redirect',
    meta: {
      type: 'static',
      title: '重定向',
      hidden: true,
      noTagsView: true
    },
    children: [
      {
        path: '/redirect/:path(.*)',
        name: 'Redirect',
        component: RedirectPage,
        meta: {
          type: 'static',
          title: '重定向',
          hidden: true,
          noTagsView: true,
        }
      }
    ]
  },
];
